<div class="wrap">
<?php
echo $grid->oForm->start();

?>
<h2>
<?php echo $grid->sGridTitle ?>
</h2>

<ul class="subsubsub">
<?php
echo $grid->showSubMenu();

?>
</ul>

<p id="post-search">
<?php
echo $grid->showSearch();

?>
</p>

<div class="tablenav">
<?php
$pageNav = $grid->showPageNav();
if ($pageNav) {
    echo "<div class='tablenav-pages'>" . $pageNav . "</div>";
}

?>
<div class="alignleft">
<?php
echo $grid->showSelect();

?>
</div>

<br class="clear" />
</div>

<br class="clear" />

<table class="widefat">
  <thead>
<?php echo $grid->showColumn();

?>
  </thead>
<tbody>
<?php
switch ($_SESSION['page']) {
    case ZEUS_DASH . "mgr_user":
        $users = $grid->select();
        if (isset($users)) {
            $style = "";
            foreach($users AS $user) {
                $style = (" class='alternate'" == $style) ? " class=''": " class='alternate'";
                echo showUserGridRow($grid, $user, $style);
            }
        } ;
        break;
    case ZEUS_DASH . "mgr_role":
        $roles = $grid->select();
        if (isset($roles)) {
            $style = "";
            foreach($roles AS $role) {
                $style = (" class='alternate'" == $style) ? " class=''": " class='alternate'";
                echo showRoleGridRow($grid, $role, $style);
            }
        } ;
        break;
    case ZEUS_DASH . "mgr_student":
        $data = $grid->select();
        if (isset($data)) {
            $style = "";
            foreach($data  AS $record) {
                $style = (" class='alternate'" == $style) ? " class=''": " class='alternate'";
                echo showStudentGridRow($grid, $record, $style);
            }
        };
        break;
    case ZEUS_DASH . "mgr_class":
        $classes = $grid->select();
        if (isset($classes)) {
            $style = "";
            foreach($classes AS $class) {
                $style = (" class='alternate'" == $style) ? " class=''": " class='alternate'";
                echo showClassGridRow($grid, $class, $style);
            }
        } ;
        break;
    case ZEUS_DASH . "sport_apply":
        $applys = $grid->select();
        if (isset($applys)) {
            $style = "";
            foreach($applys AS $apply) {
                $style = (" class='alternate'" == $style) ? " class=''": " class='alternate'";
                echo showSportApplyGridRow($grid, $apply, $style);
            }
        } ;
        break;
    default: ;
        break;
} // switch

?>

  </tbody>
</table>
<?php
echo $grid->oForm->end();

?>
<div class="tablenav">
<?php
$pageNav = $grid->showPageNav();
if ($pageNav) {
    echo "<div class='tablenav-pages'>" . $pageNav . "</div>";
}

?>

<br class="clear" />
</div>
</div>

<br class="clear" />